.class public final Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;
.super Ljava/lang/Object;
.source "VideoFullscreen.java"

# interfaces
.implements Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity$IFullscreenView;
.implements Landroid/media/MediaPlayer$OnCompletionListener;
.implements Landroid/media/MediaPlayer$OnErrorListener;
.implements Landroid/media/MediaPlayer$OnPreparedListener;
.implements Landroid/media/MediaPlayer$OnInfoListener;
.implements Landroid/media/MediaPlayer$OnSeekCompleteListener;


# static fields
.field public static final IMPLEMENTATION_ID:Ljava/lang/Integer; = null

.field private static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field static final SECOND_IN_MILLIS:I = 0x3e8

.field private static final SKIP_BUTTON_ID:I = 0x3

.field private static final SKIP_VIDEO_MESSAGE:Ljava/lang/String; = "You can skip this video in {0} seconds"

.field private static final TAG:Ljava/lang/String; = null

.field private static final TOOL_BAR_ID:I = 0x1

.field static final VIDEO_URL:Ljava/lang/String; = "videoUrl"

.field private static final VIDEO_VIEW_ID:I = 0x4

.field private static final VISIT_BUTTON_ID:I = 0x2

.field public static volatile sIsShowingVideoNow:Z


# instance fields
.field mActivity:Landroid/app/Activity;

.field private mAudioControl:Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;

.field private mCountdownRunnable:Ljava/lang/Runnable;

.field private mDialog:Landroid/app/ProgressDialog;

.field mHandler:Landroid/os/Handler;

.field private mHideToolbarAfter:I

.field volatile mIsShowing:Z

.field volatile mIsTimedOut:Z

.field volatile mIsToolbarShowing:Z

.field private mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

.field private mPosition:I

.field private mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

.field private mRoot:Landroid/widget/FrameLayout;

.field private mScaleFactor:F

.field mShowSkipButtonAfter:Ljava/lang/Integer;

.field private mSkipButton:Landroid/widget/ImageView;

.field private final mTimeout:Ljava/lang/Runnable;

.field private mToolBarHeight:I

.field private mToolbar:Landroid/widget/RelativeLayout;

.field private mUrl:Ljava/lang/String;

.field private mVideo:Landroid/widget/VideoView;

.field private mVisitButton:Landroid/widget/ImageView;

.field mVisitWasClicked:Z

.field private mWaitMessageView:Landroid/widget/TextView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 106
    const/4 v0, 0x3

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->IMPLEMENTATION_ID:Ljava/lang/Integer;

    .line 111
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 116
    const-class v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 70
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 206
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$1;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mTimeout:Ljava/lang/Runnable;

    return-void
.end method

.method static synthetic access$000()Ljava/lang/String;
    .locals 1

    .prologue
    .line 70
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$100()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 70
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$200(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 70
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->closeLoadingDialog()V

    return-void
.end method

.method static synthetic access$300(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 70
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->stopTimeoutWatching()V

    return-void
.end method

.method static synthetic access$400(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 70
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->showToolbar()V

    return-void
.end method

.method static synthetic access$500(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 70
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mWaitMessageView:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$600(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)Landroid/widget/ImageView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 70
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$700(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;
    .locals 1
    .parameter "x0"

    .prologue
    .line 70
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    return-object v0
.end method

.method static synthetic access$800(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)Landroid/widget/RelativeLayout;
    .locals 1
    .parameter "x0"

    .prologue
    .line 70
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    return-object v0
.end method

.method static synthetic access$900(Landroid/view/ViewGroup;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 70
    invoke-static {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->setPullDownToolbar(Landroid/view/ViewGroup;)V

    return-void
.end method

.method private closeLoadingDialog()V
    .locals 1

    .prologue
    .line 692
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mDialog:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 693
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    .line 695
    :cond_0
    return-void
.end method

.method private createLoadingDialog()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 353
    new-instance v0, Landroid/app/ProgressDialog;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    const v2, 0x1030010

    invoke-direct {v0, v1, v2}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mDialog:Landroid/app/ProgressDialog;

    .line 354
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v3}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 355
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mDialog:Landroid/app/ProgressDialog;

    const-string v1, "Loading video..."

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 356
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mDialog:Landroid/app/ProgressDialog;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$2;

    invoke-direct {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$2;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V

    .line 365
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0, v3}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    .line 366
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    .line 367
    return-void
.end method

.method private createSkipButton()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 373
    new-instance v2, Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-direct {v2, v3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    .line 374
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    const/4 v3, 0x3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setId(I)V

    .line 375
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    invoke-virtual {v2, v4, v4, v4, v4}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 376
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-static {v2}, Lcom/burstly/lib/util/Utils;->getSkipImage(Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    check-cast v1, Landroid/graphics/drawable/BitmapDrawable;

    .line 377
    .local v1, skipImage:Landroid/graphics/drawable/BitmapDrawable;
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 378
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 379
    invoke-direct {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->getLayoutParameters(Landroid/graphics/drawable/BitmapDrawable;)Landroid/widget/RelativeLayout$LayoutParams;

    move-result-object v0

    .line 380
    .local v0, layoutParams:Landroid/widget/RelativeLayout$LayoutParams;
    const/16 v2, 0xb

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 381
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 382
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$3;

    invoke-direct {v3, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$3;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 394
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->showCloseButtonDelayMessage()V

    .line 395
    return-void
.end method

.method private createToolBar()V
    .locals 2

    .prologue
    .line 478
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->createToolBarLayout()V

    .line 479
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->isShowVisitButton()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 480
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->createVisitButton()V

    .line 481
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitButton:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    .line 483
    :cond_0
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->createSkipButton()V

    .line 484
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    .line 485
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mRoot:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    .line 486
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mRoot:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->bringChildToFront(Landroid/view/View;)V

    .line 487
    return-void
.end method

.method private createToolBarLayout()V
    .locals 5
    .annotation build Landroid/annotation/TargetApi;
        value = 0x10
    .end annotation

    .prologue
    .line 495
    new-instance v0, Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-direct {v0, v1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    .line 496
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setId(I)V

    .line 497
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 498
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x10

    if-lt v0, v1, :cond_0

    .line 499
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-static {v1}, Lcom/burstly/lib/util/Utils;->getToolbarImage(Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackground(Landroid/graphics/drawable/Drawable;)V

    .line 503
    :goto_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v2

    iget v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolBarHeight:I

    const/16 v4, 0x50

    invoke-direct {v1, v2, v3, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 505
    return-void

    .line 501
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-static {v1}, Lcom/burstly/lib/util/Utils;->getToolbarImage(Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method

.method private createVisitButton()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 511
    new-instance v2, Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-direct {v2, v3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitButton:Landroid/widget/ImageView;

    .line 512
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitButton:Landroid/widget/ImageView;

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setId(I)V

    .line 513
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitButton:Landroid/widget/ImageView;

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setAdjustViewBounds(Z)V

    .line 514
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitButton:Landroid/widget/ImageView;

    invoke-virtual {v2, v4, v4, v4, v4}, Landroid/widget/ImageView;->setPadding(IIII)V

    .line 515
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-static {v2}, Lcom/burstly/lib/util/Utils;->getVisitSiteImage(Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    check-cast v1, Landroid/graphics/drawable/BitmapDrawable;

    .line 516
    .local v1, visitSiteImage:Landroid/graphics/drawable/BitmapDrawable;
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitButton:Landroid/widget/ImageView;

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 517
    invoke-direct {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->getLayoutParameters(Landroid/graphics/drawable/BitmapDrawable;)Landroid/widget/RelativeLayout$LayoutParams;

    move-result-object v0

    .line 518
    .local v0, layoutParams:Landroid/widget/RelativeLayout$LayoutParams;
    const/16 v2, 0x9

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 519
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitButton:Landroid/widget/ImageView;

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 520
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitButton:Landroid/widget/ImageView;

    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$5;

    invoke-direct {v3, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$5;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 536
    return-void
.end method

.method private getImageHeightFactor(F)F
    .locals 1
    .parameter "imageHeight"

    .prologue
    .line 471
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolBarHeight:I

    int-to-float v0, v0

    div-float/2addr v0, p1

    return v0
.end method

.method private getLayoutParameters(Landroid/graphics/drawable/BitmapDrawable;)Landroid/widget/RelativeLayout$LayoutParams;
    .locals 5
    .parameter "image"

    .prologue
    .line 457
    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v3

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    .line 458
    .local v2, width:I
    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v3

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    .line 459
    .local v0, height:I
    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    int-to-float v3, v0

    invoke-direct {p0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->getImageHeightFactor(F)F

    move-result v3

    int-to-float v4, v2

    mul-float/2addr v3, v4

    float-to-int v3, v3

    iget v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolBarHeight:I

    invoke-direct {v1, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 461
    .local v1, layoutParams:Landroid/widget/RelativeLayout$LayoutParams;
    return-object v1
.end method

.method private init()V
    .locals 3

    .prologue
    .line 328
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-static {v0}, Lcom/burstly/lib/util/Utils;->getScale(Landroid/content/Context;)F

    move-result v0

    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mScaleFactor:F

    .line 329
    const/high16 v0, 0x4240

    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mScaleFactor:F

    mul-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolBarHeight:I

    .line 330
    new-instance v0, Landroid/os/Handler;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHandler:Landroid/os/Handler;

    .line 331
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "videoUrl"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mUrl:Ljava/lang/String;

    .line 332
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mUrl:Ljava/lang/String;

    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenConfiguration;->getFullscreenParams(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;

    move-result-object v0

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;->getVideoParams()Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    .line 333
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->getHideToolbarAfter()I

    move-result v0

    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHideToolbarAfter:I

    .line 334
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->getShowSkipButtonAfter()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    .line 335
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->getMiddleVideoCallback()[Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;-><init>(Landroid/widget/VideoView;[Ljava/lang/String;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    .line 336
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mUrl:Ljava/lang/String;

    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenConfiguration;->removeFullscreenParams(Ljava/lang/String;)V

    .line 337
    return-void
.end method

.method private isValidActvityState()Z
    .locals 10

    .prologue
    const/4 v9, 0x0

    .line 303
    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-virtual {v5}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 304
    .local v1, intent:Landroid/content/Intent;
    const/4 v2, 0x1

    .line 305
    .local v2, isValid:Z
    if-eqz v1, :cond_0

    invoke-virtual {v1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v5

    if-nez v5, :cond_2

    .line 306
    :cond_0
    sget-object v5, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v6, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    const-string v7, "Intent is NULL or extras are NULL"

    new-array v8, v9, [Ljava/lang/Object;

    invoke-virtual {v5, v6, v7, v8}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 307
    const/4 v2, 0x0

    .line 321
    :cond_1
    :goto_0
    return v2

    .line 309
    :cond_2
    invoke-virtual {v1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v5

    const-string v6, "videoUrl"

    invoke-virtual {v5, v6}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 310
    .local v4, url:Ljava/lang/String;
    invoke-static {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenConfiguration;->getFullscreenParams(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;

    move-result-object v0

    .line 311
    .local v0, fullscreenParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;
    if-nez v0, :cond_3

    .line 312
    sget-object v5, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v6, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "No fullscreen parameters for url: "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    new-array v8, v9, [Ljava/lang/Object;

    invoke-virtual {v5, v6, v7, v8}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 313
    const/4 v2, 0x0

    .line 315
    :cond_3
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams;->getVideoParams()Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    move-result-object v3

    .line 316
    .local v3, params:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;
    if-nez v3, :cond_1

    .line 317
    sget-object v5, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v6, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "No video parameters for url: "

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    new-array v8, v9, [Ljava/lang/Object;

    invoke-virtual {v5, v6, v7, v8}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 318
    const/4 v2, 0x0

    goto :goto_0
.end method

.method private resumeOrStartWatcher()V
    .locals 4

    .prologue
    .line 633
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->isPrepared()Z

    move-result v0

    if-nez v0, :cond_0

    .line 634
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;->resume()V

    .line 641
    :goto_0
    return-void

    .line 638
    :cond_0
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    const-string v2, "Starting video progress watcher on precached video..."

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 639
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;->startMiddlepointTracking()V

    goto :goto_0
.end method

.method private static setPopupToolbar(Landroid/view/ViewGroup;)V
    .locals 10
    .parameter "panel"

    .prologue
    const/high16 v6, 0x3f80

    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 544
    new-instance v9, Landroid/view/animation/AnimationSet;

    invoke-direct {v9, v1}, Landroid/view/animation/AnimationSet;-><init>(Z)V

    .line 545
    .local v9, set:Landroid/view/animation/AnimationSet;
    new-instance v0, Landroid/view/animation/AlphaAnimation;

    invoke-direct {v0, v2, v6}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 546
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    move v3, v1

    move v4, v2

    move v5, v1

    move v7, v1

    move v8, v2

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 548
    const-wide/16 v2, 0x1f4

    invoke-virtual {v9, v2, v3}, Landroid/view/animation/AnimationSet;->setDuration(J)V

    .line 549
    invoke-virtual {v9, v1}, Landroid/view/animation/AnimationSet;->setFillAfter(Z)V

    .line 550
    invoke-virtual {p0, v9}, Landroid/view/ViewGroup;->startAnimation(Landroid/view/animation/Animation;)V

    .line 551
    return-void
.end method

.method private static setPullDownToolbar(Landroid/view/ViewGroup;)V
    .locals 10
    .parameter "panel"

    .prologue
    const/high16 v8, 0x3f80

    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 559
    new-instance v9, Landroid/view/animation/AnimationSet;

    invoke-direct {v9, v1}, Landroid/view/animation/AnimationSet;-><init>(Z)V

    .line 560
    .local v9, set:Landroid/view/animation/AnimationSet;
    new-instance v0, Landroid/view/animation/AlphaAnimation;

    invoke-direct {v0, v8, v2}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 561
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    move v3, v1

    move v4, v2

    move v5, v1

    move v6, v2

    move v7, v1

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    invoke-virtual {v9, v0}, Landroid/view/animation/AnimationSet;->addAnimation(Landroid/view/animation/Animation;)V

    .line 563
    const-wide/16 v2, 0x1f4

    invoke-virtual {v9, v2, v3}, Landroid/view/animation/AnimationSet;->setDuration(J)V

    .line 564
    invoke-virtual {v9, v1}, Landroid/view/animation/AnimationSet;->setFillAfter(Z)V

    .line 565
    invoke-virtual {p0, v9}, Landroid/view/ViewGroup;->startAnimation(Landroid/view/animation/Animation;)V

    .line 566
    return-void
.end method

.method private showCloseButtonDelayMessage()V
    .locals 9

    .prologue
    const/16 v8, 0xf

    const/4 v7, 0x1

    const/4 v6, 0x0

    const/4 v5, -0x2

    .line 401
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-lez v1, :cond_0

    .line 402
    new-instance v1, Landroid/widget/TextView;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-direct {v1, v2}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mWaitMessageView:Landroid/widget/TextView;

    .line 403
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mWaitMessageView:Landroid/widget/TextView;

    const-string v2, "You can skip this video in {0} seconds"

    new-array v3, v7, [Ljava/lang/Object;

    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    div-int/lit16 v4, v4, 0x3e8

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v6

    invoke-static {v2, v3}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 404
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mWaitMessageView:Landroid/widget/TextView;

    const/high16 v2, 0x4150

    invoke-virtual {v1, v7, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 405
    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v0, v5, v5}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    .line 407
    .local v0, lParams:Landroid/widget/RelativeLayout$LayoutParams;
    const/16 v1, 0xb

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 408
    invoke-virtual {v0, v8}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    .line 409
    iput v8, v0, Landroid/widget/RelativeLayout$LayoutParams;->rightMargin:I

    .line 410
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mWaitMessageView:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 411
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mWaitMessageView:Landroid/widget/TextView;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    .line 415
    .end local v0           #lParams:Landroid/widget/RelativeLayout$LayoutParams;
    :goto_0
    return-void

    .line 413
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mSkipButton:Landroid/widget/ImageView;

    invoke-virtual {v1, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method private showToolbar()V
    .locals 4

    .prologue
    .line 701
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    .line 702
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->setPopupToolbar(Landroid/view/ViewGroup;)V

    .line 703
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mIsToolbarShowing:Z

    .line 704
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$7;

    invoke-direct {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$7;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V

    iget v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHideToolbarAfter:I

    int-to-long v2, v2

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 715
    return-void
.end method

.method private startCountdownToAllowSkip()V
    .locals 4

    .prologue
    .line 421
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-lez v0, :cond_0

    .line 422
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$4;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mCountdownRunnable:Ljava/lang/Runnable;

    .line 446
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mCountdownRunnable:Ljava/lang/Runnable;

    const-wide/16 v2, 0x3e8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 448
    :cond_0
    return-void
.end method

.method private stopTimeoutWatching()V
    .locals 4

    .prologue
    .line 732
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->isPrepared()Z

    move-result v0

    if-nez v0, :cond_0

    .line 733
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    const-string v2, "Video watchdog stopped."

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 734
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mTimeout:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 736
    :cond_0
    return-void
.end method

.method private watch()V
    .locals 4

    .prologue
    .line 343
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->isPrepared()Z

    move-result v0

    if-nez v0, :cond_0

    .line 344
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    const-string v2, "Starting video load watchdog..."

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 345
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mTimeout:Ljava/lang/Runnable;

    const-wide/16 v2, 0x2710

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 347
    :cond_0
    return-void
.end method


# virtual methods
.method adjustLayout()V
    .locals 1

    .prologue
    .line 682
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mRoot:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->invalidate()V

    .line 683
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mRoot:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->requestLayout()V

    .line 684
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->invalidate()V

    .line 685
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mToolbar:Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->requestLayout()V

    .line 686
    return-void
.end method

.method public getAttachParameters()Landroid/view/ViewGroup$LayoutParams;
    .locals 1

    .prologue
    .line 746
    const/4 v0, 0x0

    return-object v0
.end method

.method public onCompletion(Landroid/media/MediaPlayer;)V
    .locals 6
    .parameter "mediaPlayer"

    .prologue
    const/4 v5, 0x0

    .line 570
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mIsTimedOut:Z

    if-nez v0, :cond_0

    .line 571
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    const-string v2, "Completed playing video file: {0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mUrl:Ljava/lang/String;

    aput-object v4, v3, v5

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 572
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    const-string v2, "Sending watch-to-the-end track request..."

    new-array v3, v5, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 573
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->getEndVideoCallback()[Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;->trackVideoEnd([Ljava/lang/String;)V

    .line 574
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    .line 576
    :cond_0
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;Landroid/app/Activity;)Landroid/view/View;
    .locals 5
    .parameter "savedStateBundle"
    .parameter "currentActivity"

    .prologue
    const/4 v3, 0x1

    .line 269
    iput-object p2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    .line 271
    new-instance v1, Landroid/widget/FrameLayout;

    invoke-direct {v1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mRoot:Landroid/widget/FrameLayout;

    .line 272
    new-instance v1, Landroid/widget/VideoView;

    invoke-direct {v1, p2}, Landroid/widget/VideoView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    .line 273
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->isValidActvityState()Z

    move-result v1

    if-nez v1, :cond_0

    .line 274
    const/4 v1, 0x0

    .line 294
    :goto_0
    return-object v1

    .line 276
    :cond_0
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->init()V

    .line 277
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->watch()V

    .line 278
    iput-boolean v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mIsShowing:Z

    .line 279
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->isPrepared()Z

    move-result v1

    if-nez v1, :cond_1

    .line 280
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->createLoadingDialog()V

    .line 282
    :cond_1
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;

    invoke-direct {v1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mAudioControl:Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;

    .line 283
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    const/4 v2, 0x4

    invoke-virtual {v1, v2}, Landroid/widget/VideoView;->setId(I)V

    .line 284
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    invoke-virtual {v1, v3}, Landroid/widget/VideoView;->setKeepScreenOn(Z)V

    .line 285
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    invoke-virtual {v1}, Landroid/widget/VideoView;->requestFocus()Z

    .line 286
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    invoke-virtual {v1, p0}, Landroid/widget/VideoView;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 287
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    invoke-virtual {v1, p0}, Landroid/widget/VideoView;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    .line 289
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    invoke-virtual {v1, p0}, Landroid/widget/VideoView;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    .line 291
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v0

    .line 292
    .local v0, fillparentVal:I
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mRoot:Landroid/widget/FrameLayout;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v4, 0x11

    invoke-direct {v3, v0, v0, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {v1, v2, v3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 293
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->createToolBar()V

    .line 294
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mRoot:Landroid/widget/FrameLayout;

    goto :goto_0
.end method

.method public onDestroy(Landroid/app/Activity;)V
    .locals 2
    .parameter "currentActivity"

    .prologue
    .line 606
    const/4 v0, 0x0

    sput-boolean v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->sIsShowingVideoNow:Z

    .line 607
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    if-eqz v0, :cond_0

    .line 608
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;->cancel()V

    .line 609
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    .line 611
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mCountdownRunnable:Ljava/lang/Runnable;

    if-eqz v0, :cond_1

    .line 612
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mCountdownRunnable:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 615
    :cond_1
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitWasClicked:Z

    if-nez v0, :cond_2

    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->sCurrentInstance:Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;

    if-eqz v0, :cond_2

    .line 616
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->sCurrentInstance:Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v0

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/BurstlyVideoAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->dismissedFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 619
    :cond_2
    return-void
.end method

.method public onError(Landroid/media/MediaPlayer;II)Z
    .locals 7
    .parameter "mediaPlayer"
    .parameter "i"
    .parameter "i1"

    .prologue
    const/4 v6, 0x1

    .line 719
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mIsTimedOut:Z

    if-nez v0, :cond_0

    .line 720
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->stopTimeoutWatching()V

    .line 721
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;->cancel()V

    .line 722
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    const-string v2, "Error while playing video file: {0}"

    new-array v3, v6, [Ljava/lang/Object;

    const/4 v4, 0x0

    iget-object v5, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mUrl:Ljava/lang/String;

    aput-object v5, v3, v4

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 723
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mActivity:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    .line 725
    :cond_0
    return v6
.end method

.method public onInfo(Landroid/media/MediaPlayer;II)Z
    .locals 6
    .parameter "mediaplayer"
    .parameter "i"
    .parameter "j"

    .prologue
    const/4 v5, 0x0

    .line 740
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    const-string v2, "Info playing video file: {0}"

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mUrl:Ljava/lang/String;

    aput-object v4, v3, v5

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 741
    return v5
.end method

.method public onKey(Landroid/app/Activity;ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "activity"
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 264
    const/4 v0, 0x0

    return v0
.end method

.method public onPause(Landroid/app/Activity;)V
    .locals 2
    .parameter "currentActivity"
    .annotation build Landroid/annotation/TargetApi;
        value = 0x8
    .end annotation

    .prologue
    .line 589
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mIsShowing:Z

    .line 590
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    invoke-virtual {v0}, Landroid/widget/VideoView;->getCurrentPosition()I

    move-result v0

    iput v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mPosition:I

    .line 591
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    invoke-virtual {v0}, Landroid/widget/VideoView;->stopPlayback()V

    .line 592
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;->pause()V

    .line 593
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mAudioControl:Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;->unRegisterReciever()V

    .line 595
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->closeLoadingDialog()V

    .line 596
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mCountdownRunnable:Ljava/lang/Runnable;

    if-eqz v0, :cond_0

    .line 597
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHandler:Landroid/os/Handler;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mCountdownRunnable:Ljava/lang/Runnable;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    .line 599
    :cond_0
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVisitWasClicked:Z

    if-eqz v0, :cond_1

    .line 600
    invoke-virtual {p1}, Landroid/app/Activity;->finish()V

    .line 602
    :cond_1
    return-void
.end method

.method public onPrepared(Landroid/media/MediaPlayer;)V
    .locals 4
    .parameter "mediaPlayer"

    .prologue
    .line 645
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mIsTimedOut:Z

    if-nez v0, :cond_3

    .line 646
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    invoke-virtual {v0}, Landroid/widget/VideoView;->start()V

    .line 647
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mAudioControl:Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;->setMediaPlayer(Landroid/media/MediaPlayer;)V

    .line 648
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mAudioControl:Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/AudioControlReciever;->registerReciever()V

    .line 649
    invoke-virtual {p1, p0}, Landroid/media/MediaPlayer;->setOnSeekCompleteListener(Landroid/media/MediaPlayer$OnSeekCompleteListener;)V

    .line 650
    iget v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mPosition:I

    if-eqz v0, :cond_0

    .line 651
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    iget v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mPosition:I

    invoke-virtual {v0, v1}, Landroid/widget/VideoView;->seekTo(I)V

    .line 653
    :cond_0
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->stopTimeoutWatching()V

    .line 654
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mParams:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenParams$VideoParams;->isPrepared()Z

    move-result v0

    if-nez v0, :cond_1

    .line 655
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->LOG:Lcom/burstly/lib/util/LoggerExt;

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->TAG:Ljava/lang/String;

    const-string v2, "Starting video progress watcher on unprecached video..."

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 658
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mProgressWatcher:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;

    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoTracker;->startMiddlepointTracking()V

    .line 660
    :cond_1
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->adjustLayout()V

    .line 661
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mIsToolbarShowing:Z

    if-nez v0, :cond_2

    .line 662
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$6;

    invoke-direct {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen$6;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;)V

    const-wide/16 v2, 0x3e8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 671
    :cond_2
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->closeLoadingDialog()V

    .line 672
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mShowSkipButtonAfter:Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-lez v0, :cond_3

    .line 673
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->startCountdownToAllowSkip()V

    .line 676
    :cond_3
    return-void
.end method

.method public onResume(Landroid/app/Activity;)V
    .locals 2
    .parameter "currentActivity"
    .annotation build Landroid/annotation/TargetApi;
        value = 0x8
    .end annotation

    .prologue
    .line 624
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mIsShowing:Z

    .line 625
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->resumeOrStartWatcher()V

    .line 626
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mUrl:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/VideoView;->setVideoPath(Ljava/lang/String;)V

    .line 627
    return-void
.end method

.method public onSeekComplete(Landroid/media/MediaPlayer;)V
    .locals 1
    .parameter "arg0"

    .prologue
    .line 756
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mVideo:Landroid/widget/VideoView;

    invoke-virtual {v0}, Landroid/widget/VideoView;->start()V

    .line 757
    return-void
.end method

.method public onTouchEvent(Landroid/app/Activity;Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "currentActivity"
    .parameter "event"

    .prologue
    .line 580
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->mIsToolbarShowing:Z

    if-nez v0, :cond_0

    .line 581
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoFullscreen;->showToolbar()V

    .line 583
    :cond_0
    const/4 v0, 0x1

    return v0
.end method

.method public showDefaultCloseButton()Z
    .locals 1

    .prologue
    .line 751
    const/4 v0, 0x0

    return v0
.end method
